<?php
namespace Platform\Model;

use PhalApi\Model\DataModel;

class SystemMenuRole extends DataModel {

    public function getTableName($id) {
        return 'menu_role';
    }

    //角色关联菜单名称
    public function getRoleMenuList($where,$select,$order){
        return $this->table('menu')->alias('m')
            ->leftJoin('menu_role','mr','m.id=mr.menu_id')
            ->where($where)->select($select)->order($order)->fetchAll();
    }
}

